﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001079 RID: 4217
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueTournStartCsReq : IMessage<RogueTournStartCsReq>, IMessage, IEquatable<RogueTournStartCsReq>, IDeepCloneable<RogueTournStartCsReq>, IBufferMessage
	{
		// Token: 0x1700352A RID: 13610
		// (get) Token: 0x0600BC3D RID: 48189 RVA: 0x001FB2FF File Offset: 0x001F94FF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueTournStartCsReq> Parser
		{
			get
			{
				return RogueTournStartCsReq._parser;
			}
		}

		// Token: 0x1700352B RID: 13611
		// (get) Token: 0x0600BC3E RID: 48190 RVA: 0x001FB306 File Offset: 0x001F9506
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueTournStartCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700352C RID: 13612
		// (get) Token: 0x0600BC3F RID: 48191 RVA: 0x001FB318 File Offset: 0x001F9518
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueTournStartCsReq.Descriptor;
			}
		}

		// Token: 0x0600BC40 RID: 48192 RVA: 0x001FB31F File Offset: 0x001F951F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTournStartCsReq()
		{
		}

		// Token: 0x0600BC41 RID: 48193 RVA: 0x001FB340 File Offset: 0x001F9540
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTournStartCsReq(RogueTournStartCsReq other) : this()
		{
			this.week_ = other.week_;
			this.baseAvatarIdList_ = other.baseAvatarIdList_.Clone();
			this.areaId_ = other.areaId_;
			this.startDifficultyIdList_ = other.startDifficultyIdList_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600BC42 RID: 48194 RVA: 0x001FB39E File Offset: 0x001F959E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTournStartCsReq Clone()
		{
			return new RogueTournStartCsReq(this);
		}

		// Token: 0x1700352D RID: 13613
		// (get) Token: 0x0600BC43 RID: 48195 RVA: 0x001FB3A6 File Offset: 0x001F95A6
		// (set) Token: 0x0600BC44 RID: 48196 RVA: 0x001FB3AE File Offset: 0x001F95AE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Week
		{
			get
			{
				return this.week_;
			}
			set
			{
				this.week_ = value;
			}
		}

		// Token: 0x1700352E RID: 13614
		// (get) Token: 0x0600BC45 RID: 48197 RVA: 0x001FB3B7 File Offset: 0x001F95B7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> BaseAvatarIdList
		{
			get
			{
				return this.baseAvatarIdList_;
			}
		}

		// Token: 0x1700352F RID: 13615
		// (get) Token: 0x0600BC46 RID: 48198 RVA: 0x001FB3BF File Offset: 0x001F95BF
		// (set) Token: 0x0600BC47 RID: 48199 RVA: 0x001FB3C7 File Offset: 0x001F95C7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint AreaId
		{
			get
			{
				return this.areaId_;
			}
			set
			{
				this.areaId_ = value;
			}
		}

		// Token: 0x17003530 RID: 13616
		// (get) Token: 0x0600BC48 RID: 48200 RVA: 0x001FB3D0 File Offset: 0x001F95D0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> StartDifficultyIdList
		{
			get
			{
				return this.startDifficultyIdList_;
			}
		}

		// Token: 0x0600BC49 RID: 48201 RVA: 0x001FB3D8 File Offset: 0x001F95D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueTournStartCsReq);
		}

		// Token: 0x0600BC4A RID: 48202 RVA: 0x001FB3E8 File Offset: 0x001F95E8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueTournStartCsReq other)
		{
			return other != null && (other == this || (this.Week == other.Week && this.baseAvatarIdList_.Equals(other.baseAvatarIdList_) && this.AreaId == other.AreaId && this.startDifficultyIdList_.Equals(other.startDifficultyIdList_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600BC4B RID: 48203 RVA: 0x001FB45C File Offset: 0x001F965C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Week != 0U)
			{
				num ^= this.Week.GetHashCode();
			}
			num ^= this.baseAvatarIdList_.GetHashCode();
			if (this.AreaId != 0U)
			{
				num ^= this.AreaId.GetHashCode();
			}
			num ^= this.startDifficultyIdList_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600BC4C RID: 48204 RVA: 0x001FB4D0 File Offset: 0x001F96D0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600BC4D RID: 48205 RVA: 0x001FB4D8 File Offset: 0x001F96D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600BC4E RID: 48206 RVA: 0x001FB4E4 File Offset: 0x001F96E4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.startDifficultyIdList_.WriteTo(ref output, RogueTournStartCsReq._repeated_startDifficultyIdList_codec);
			this.baseAvatarIdList_.WriteTo(ref output, RogueTournStartCsReq._repeated_baseAvatarIdList_codec);
			if (this.AreaId != 0U)
			{
				output.WriteRawTag(96);
				output.WriteUInt32(this.AreaId);
			}
			if (this.Week != 0U)
			{
				output.WriteRawTag(120);
				output.WriteUInt32(this.Week);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600BC4F RID: 48207 RVA: 0x001FB560 File Offset: 0x001F9760
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Week != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Week);
			}
			num += this.baseAvatarIdList_.CalculateSize(RogueTournStartCsReq._repeated_baseAvatarIdList_codec);
			if (this.AreaId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.AreaId);
			}
			num += this.startDifficultyIdList_.CalculateSize(RogueTournStartCsReq._repeated_startDifficultyIdList_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600BC50 RID: 48208 RVA: 0x001FB5DC File Offset: 0x001F97DC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueTournStartCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Week != 0U)
			{
				this.Week = other.Week;
			}
			this.baseAvatarIdList_.Add(other.baseAvatarIdList_);
			if (other.AreaId != 0U)
			{
				this.AreaId = other.AreaId;
			}
			this.startDifficultyIdList_.Add(other.startDifficultyIdList_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600BC51 RID: 48209 RVA: 0x001FB64E File Offset: 0x001F984E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600BC52 RID: 48210 RVA: 0x001FB658 File Offset: 0x001F9858
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 16U)
				{
					if (num == 8U || num == 10U)
					{
						this.startDifficultyIdList_.AddEntriesFrom(ref input, RogueTournStartCsReq._repeated_startDifficultyIdList_codec);
						continue;
					}
					if (num == 16U)
					{
						goto IL_4D;
					}
				}
				else
				{
					if (num == 18U)
					{
						goto IL_4D;
					}
					if (num == 96U)
					{
						this.AreaId = input.ReadUInt32();
						continue;
					}
					if (num == 120U)
					{
						this.Week = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				continue;
				IL_4D:
				this.baseAvatarIdList_.AddEntriesFrom(ref input, RogueTournStartCsReq._repeated_baseAvatarIdList_codec);
			}
		}

		// Token: 0x04004BC7 RID: 19399
		private static readonly MessageParser<RogueTournStartCsReq> _parser = new MessageParser<RogueTournStartCsReq>(() => new RogueTournStartCsReq());

		// Token: 0x04004BC8 RID: 19400
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004BC9 RID: 19401
		public const int WeekFieldNumber = 15;

		// Token: 0x04004BCA RID: 19402
		private uint week_;

		// Token: 0x04004BCB RID: 19403
		public const int BaseAvatarIdListFieldNumber = 2;

		// Token: 0x04004BCC RID: 19404
		private static readonly FieldCodec<uint> _repeated_baseAvatarIdList_codec = FieldCodec.ForUInt32(18U);

		// Token: 0x04004BCD RID: 19405
		private readonly RepeatedField<uint> baseAvatarIdList_ = new RepeatedField<uint>();

		// Token: 0x04004BCE RID: 19406
		public const int AreaIdFieldNumber = 12;

		// Token: 0x04004BCF RID: 19407
		private uint areaId_;

		// Token: 0x04004BD0 RID: 19408
		public const int StartDifficultyIdListFieldNumber = 1;

		// Token: 0x04004BD1 RID: 19409
		private static readonly FieldCodec<uint> _repeated_startDifficultyIdList_codec = FieldCodec.ForUInt32(10U);

		// Token: 0x04004BD2 RID: 19410
		private readonly RepeatedField<uint> startDifficultyIdList_ = new RepeatedField<uint>();
	}
}
